﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ConstructionUnit.aspx.cs"
    Inherits="EnvironmentManagerSystem.ConstructionUnit.ConstructionUnit" Theme="TextBox" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>建设单位</title>
    <link href="../Style/css.css" rel="stylesheet" type="text/css" />
    <script src="../Script/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="../Script/UserManager.js" type="text/javascript"></script>
</head>

<body style="background:#e0e2e7; overflow:visible;">
    <form id="form1" runat="server">
    <div style="text-align: center;">
        <table align="center" style="width:100%;" >
            <tr><td style="text-align:left;vertical-align:middle;" valign="middle">
                单位名称：<asp:TextBox ID="txtUnitName" runat="server" Width="150px"></asp:TextBox>
            </td><td style="text-align:left;vertical-align:middle;">
                        联系人：<asp:TextBox ID="txtlianxiren" runat="server" Width="150px"></asp:TextBox>
            </td><td style="text-align:left;vertical-align:middle;">
                        法人代表：<asp:TextBox ID="txtren" runat="server" Width="150px"></asp:TextBox>
            </td><td style="text-align:right; vertical-align:top;">
                    <asp:Button ID="btnSearch" runat="server" Text="查询" CssClass="anniu1" onclick="btnSearch_Click" />
                    <asp:Button ID="btnReset" runat="server" Text="重置" CssClass="anniu1" onclick="btnReset_Click" style="margin-left:10px; margin-right:10px;"/>
            </td></tr>
        <tr><td style="text-align:right; vertical-align:middle; height: 10px;" 
                align="right">
            <asp:HiddenField ID="hidUnitName" runat="server" />
            </td><td style="text-align:right; vertical-align:middle; height: 10px;" 
                align="right">
                <asp:HiddenField ID="hidlianxiren" runat="server" />
            </td><td style="text-align:right; vertical-align:middle; height: 10px;" 
                align="right">
                <asp:HiddenField ID="hidren" runat="server" />
            </td><td style="text-align:right; vertical-align:middle; height: 10px;" 
                align="right">
                &nbsp;</td></tr>
            <tr>
                <td style="text-align:left;vertical-align:top;" colspan="4">
                    <asp:GridView ID="gdvConstructionUnit" runat="server" AutoGenerateColumns="False" 
                    CellPadding="4" ForeColor="#333333" GridLines="Vertical" Width="99%" 
                    DataKeyNames="ID" BorderColor="Silver" HorizontalAlign="Center" 
                    EmptyDataText="无数据" AllowPaging="True" 
                        PageSize="50" 
                        onpageindexchanged="gdvConstructionUnit_PageIndexChanged" 
                        onpageindexchanging="gdvConstructionUnit_PageIndexChanging" 
                        onrowdatabound="gdvConstructionUnit_RowDataBound">
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <RowStyle BackColor="#F0F2F3" Font-Size="12px" Height="16px" 
                            HorizontalAlign="Center" VerticalAlign="Middle" />
                        <Columns>
                            <asp:BoundField HeaderText="单位名称" DataField="Name" />
                            <asp:BoundField HeaderText="通信地址" DataField="Address" />
                            <asp:BoundField HeaderText="联系电话" DataField="Phone" />
                            <asp:BoundField HeaderText="邮政编码" DataField="ZipCode" />
                            <asp:TemplateField HeaderText="申请时间">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox1" class="Wdate" Text='<%# Bind("ApplicationTime") %>' runat="server" onClick="WdatePicker()"></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("ApplicationTime") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField HeaderText="联系人" DataField="lianxiren" />
                            <asp:BoundField DataField="ren" HeaderText="法人代表" />
                            <asp:TemplateField ShowHeader="False" Visible="False">
                                <ItemTemplate>
                                    <asp:LinkButton ID="LinkButton3" runat="server" CausesValidation="False" CommandName="Delete" Enabled="<%# isAdmin %>"
                                        Text="删除" Visible="false" OnClientClick="javascript:return confirm('是否删除')"></asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <PagerStyle ForeColor="Black" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle Font-Bold="True" ForeColor="#00286F" 
                            CssClass="right_list01_tit" BackColor="#507CD1" />
                        <EditRowStyle BackColor="#2461BF" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
